<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h3>图书系统</h3>
	<input type="text" name = "chaxun"/><br/>
	<input type="submit" value="查询"/>
	
	<table>
		<tr>
			<th>编号</th>
			<th>书名</th>
			<th>作者</th>
			<th>出版社</th>
			<th>售价</th>
			<th>库存</th>
			<th>照片</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${list }" var="a">
		<tr>
			<td>${a.id }</td>
			<td>${a.name }</td>
			<td>${a.author }</td>
			<td>${a.press }</td>
			<td>${a.price }</td>
			<td>${a.stock }</td>
			<td><img src="${a.phone }"/></td>
			<td><a href="add_del?id=${a.id }">删除</a>/<a href="#">添加库存</a></td>
		</tr>
		</c:forEach>
		<tr>
			<td colspan="8" style="text-align: center;"><a href="AddBook.jsp">添加图书</a></td>
		</tr>
	</table>
</body>
</html>